package com.ql.gamelogm.entities;

import java.util.Date;

public class Mail {
    private int id;
    private String state;
    private String sendTo;
    private String subject;
    private String content;
    private String sendFrom;
    private Date date;

    public Mail() {
    }

    public Mail(int id, String state, String sendTo, String subject, String content, String sendFrom, Date date) {
        this.id = id;
        this.state = state;
        this.sendTo = sendTo;
        this.subject = subject;
        this.content = content;
        this.sendFrom = sendFrom;
        this.date = date;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getSendTo() {
        return sendTo;
    }

    public void setSendTo(String sendTo) {
        this.sendTo = sendTo;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getSendFrom() {
        return sendFrom;
    }

    public void setSendFrom(String sendFrom) {
        this.sendFrom = sendFrom;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    @Override
    public String toString() {
        return "Mail{" +
                "id=" + id +
                ", state='" + state + '\'' +
                ", sendTo='" + sendTo + '\'' +
                ", subject='" + subject + '\'' +
                ", content='" + content + '\'' +
                ", sendFrom='" + sendFrom + '\'' +
                ", date=" + date +
                '}';
    }
}
